package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

// AddCouponReq 添加优惠券
type AddCouponReq struct {
	g.Meta `path:"/coupon/add" tags:"优惠券模块" method:"post" summary:"添加优惠券"`
	*model.CouponInfoRes
	*model.CouponIdRes
}

// UpdateCouponReq 更新优惠券
type UpdateCouponReq struct {
	g.Meta `path:"/coupon/update" tags:"优惠券模块" method:"post" summary:"更新优惠券/已兑换的优惠券无用"`
	model.CouponEditInfoRes
}

// DeleteCouponReq 删除优惠券
type DeleteCouponReq struct {
	g.Meta `path:"/coupon/delete" tags:"优惠券模块" method:"delete" summary:"删除优惠券"`
	*model.CouponIdReq
}

// CouponInfoReq 通过id获取优惠券的详情
type CouponInfoReq struct {
	g.Meta `path:"/coupon/info" tags:"优惠券模块" method:"get" summary:"通过id获取优惠券"`
	*model.CouponIdReq
}

// CouponListReq 获取优惠券列表
type CouponListReq struct {
	g.Meta `path:"/coupon/list" tags:"优惠券模块" method:"get" summary:"优惠券列表"`
	*model.CouponListReq
}
